package com.smile.ye.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smile.ye.data.entity.ProductItemEntity;
import com.smile.ye.data.entity.ProductMenuEntity;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ProductMenuMapper extends BaseMapper<ProductMenuEntity> {

    @Select("select * from smile_product_items p, (select * from smile_product_menus) m where p.menu = m.menu")
    public List<ProductMenuEntity> ad();
}
